package com.threeti.mecool.legacy.domain.model.basicdata;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/** 客户(遗留) */
@Entity
@Table(name = "MD_CUST")
public class CustomerLegacy implements Serializable {
  @Id
  @Column(name="CUST_CODE")
  private String code;
  
  @Column(name="CUST_NAME")
  private String name;
  
  public CustomerLegacy(String code, String name) {
    super();
    this.code = code;
    this.name = name;
  }

  public String getCode() {
    return code;
  }

  public String getName() {
    return name;
  }

  @Override
  public String toString() {
    return "CustomerLegacy [code=" + code + ", name=" + name + "]";
  }

  CustomerLegacy() {
    super();
  }

}
